package com.xjgc.common.utils;


import java.sql.Date;
import java.sql.Time;

public class JudgeUtils {
    public static String judgeNullOrEmpty (String value){
        if (value == null || value.equals(null)){
            value = "";
        }
        return value;
    }
    public static String judgeNullOrEmpty (Integer value){
        if (value == null || value.equals(null)){
            return  "";
        }
        return value.toString();
    }
    public static String judgeNullOrEmpty (Long value){
        if (value == null || value.equals(null)){
            return  "";
        }
        return value.toString();
    }
    public static String judgeNullOrEmpty (Double value){
        if (value == null || value.equals(null)){
            return  "";
        }
        return value.toString();
    }
    public static String judgeNullOrEmpty (Date value){
        if (value == null || value.equals(null)){
            return  "";
        }
        return value.toString();
    }
    public static String judgeNullOrEmpty (java.util.Date value){
        if (value == null || value.equals(null)){
            return  "";
        }
        return value.toString();
    }
    public static String judgeNullOrEmpty (Time value){
        if (value == null || value.equals(null)){
            return  "";
        }
        return value.toString();
    }
}
